package com.itsu.shirojwt.shiro.token;

import org.apache.shiro.authc.HostAuthenticationToken;

public class JWTToken implements HostAuthenticationToken {

    private static final long serialVersionUID = 3570754691705626616L;

    private String tokenStr;

    private String host;

    

    @Override
    public Object getPrincipal() {
        return tokenStr;
    }

    @Override
    public Object getCredentials() {
        return tokenStr;
    }

    @Override
    public String getHost() {
        return host;
    }

    public JWTToken(String tokenStr) {
        this.tokenStr = tokenStr;
        this.host = "localhost";
    }

}